// 首页
import http from '../utils/request'

// 首页轮播图
export const getLunbo = () => {
  return http({
    method: 'get',
    url: '/api/getlunbo'
  })
}

// 商品详细信息
export const shangpinList = () => {
  return http({
    method: 'get',
    url: '/api/getgoods'
  })
}

// 商品详情轮播图
export const shangpinList2 = (id) => {
  return http({
    method: 'get',
    url: 'http://127.0.0.1:3000/api/getgoodslunbo/' + id
  })
}

// 商品评论区图片
export const shangpingimg = (id) => {
  return http({
    method: 'get',
    url: '/api/getgoodsimgs/' + id
  })
}

